﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTaohuaItemCommentResult")]
    public class TaohuaItemCommentResult : BaseObject
    {
        //begin
        public TaohuaItemCommentResult()
        {}
        public TaohuaItemCommentResult(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        [Association("TaohuaItemCommentResultTaohuaItemComments", typeof(TaohuaItemComment)), Aggregated]
        public XPCollection<TaohuaItemComment> TaohuaItemComments
        {
            get
            {
                return GetCollection<TaohuaItemComment>("TaohuaItemComments");
            }
        }
        private long _TotalCommentNum;
        public long TotalCommentNum
        {
            get
            {
                return _TotalCommentNum;
            }
            set
            {
                SetPropertyValue("TotalCommentNum", ref _TotalCommentNum, value);
            }
        }
        //end
    }
}
